package se.wangs.proxydemo.impl;

import se.wangs.proxydemo.Alive;

/**
 * -- coding: UTF-8 -- *
 *
 * @author wangs
 * @date 2023/12/13 13:57
 * @description 学生，被代理对象，委托者
 */
public class Student implements Alive {
    private String name;

    public Student() {
    }

    public Student(String name) {
        this.name = name;
    }
    @Override
    public void eat() {
        System.out.println(name + "：开始吃饭...");
    }
}
